<div class="panel panel-default" ng-controller="PassengerListCtrl">
	<div class="panel-heading">系统管理 / 会员列表</div>
	<toaster-container toaster-options="{'position-class': 'toast-top-right', 'close-button':true}"></toaster-container>
	<div class="row wrapper m-n">
		<form class="bs-example form-horizontal ng-pristine ng-valid">
			<div class="form-group col-md-3">
				<div class="col-md-11">
					<input type="text" ng-model="queryMap.name" class="form-control" placeholder="真实姓名">
				</div>
			</div>
			<div class="form-group col-md-3">
				<div class="col-md-11">
					<input type="text" ng-model="queryMap.nickname" class="form-control" placeholder="昵称">
				</div>
			</div>
			<div class="form-group col-md-3">
				<div class="col-md-11">
					<input type="text" ng-model="queryMap.phone" class="form-control" placeholder="手机号">
				</div>
			</div>
			<div class="form-group col-md-3">
				<div class="col-md-11">
					<input type="text" ng-model="queryMap.idCard" class="form-control" placeholder="身份证号">

				</div>
			</div>
			<div class="form-group col-md-1">
				<div class="col-md-1">
					<button type="button" class="btn btn-info" ng-click="query()">查询</button>
				</div>
			</div>
		</form>
	</div>
	<div class="table-responsive">
		<table class="table table-striped b-t b-light">
			<thead>
				<tr>
					<th style="width: 10px;">
						<label class="i-checks m-b-none" has-authority="SYSTEM_PASSENGER_DEL">
							<input type="checkbox" ng-model="ckAll" ng-click="checkAll(ckAll,dataList)"><i></i>
						</label>
					</th>
					<th style="width: 60px;">真实姓名</th>
					<th style="width: 60px;">昵称</th>
					<th style="width: 50px;">手机号</th>
					<th style="width: 60px;">身份证号</th>
					<th style="width: 40px;">积分</th>
					<th style="width: 50px;">会员等级</th>
					<th style="width: 70px;">最后登录时间</th>
					<th style="width: 40px;">
						<div class="list-icon">
							<a href tooltip="添加" has-authority="SYSTEM_PASSENGER_ADD">
								<i class="fa fa-plus fa-fw m-r-xs" ng-click="write('lg',null,'insert')"></i>
							</a>
							<a href tooltip="批量删除" has-authority="SYSTEM_PASSENGER_DEL">
								<i class="fa fa-times fa-fw" ng-click="del('sm',user,'deleteAll')"></i>
							</a>
						</div>
					</th>
				</tr>
			</thead>
			<tbody>
				<tr ng-repeat="p in dataList">
					<td>
						<label class="i-checks m-b-none" has-authority="SYSTEM_PASSENGER_DEL">
							<input id="{{p.ic}}" name="checks" type="checkbox" ng-checked="ckAll" ng-model="checks" ng-click="check(p.id,checks)"><i></i>
						</label>
					</td>
					<td>{{p.name}}</td>
					<td>{{p.nickname}}</td>
					<td>{{p.phone}}</td>
					<td>{{p.idCard}}</td>
					<td>{{p.points}}</td>
					<td>{{p.rankName}}</td>
					<td>{{p.lastLoginTime | date : 'yyyy-MM-dd HH:mm:ss'}}</td>
					<td>
						<div class="list-icon">
							<a href tooltip="查看会员乘车人" has-authority="SYSTEM_PASSENGER_CONTACT">
                                <i class="fa fa-edit" ui-sref="app.system.contact({passengerId: p.id})"></i>
                            </a>
							<a href tooltip="修改" has-authority="SYSTEM_PASSENGER_UPDATE">
                                <i class="fa fa-pencil" ng-click="write('lg',p,'update')"></i>
                            </a>
							<a href tooltip="删除" has-authority="SYSTEM_PASSENGER_DEL">
                                <i class="fa fa-times" ng-click="del('sm',p,'delete')"></i>
                            </a>
							<a href tooltip="查看退款订单" has-authority="BOOKING_RETURN">
                                <i class="fa fa-search" ui-sref="app.system.ref({passengerId: p.id})"></i>
                            </a>
							<a href tooltip="订单积分详情" ui-sref="app.system.points({passengerId: p.id})" has-authority="SYSTEM_PASSENGER">
                                <i class="icon-info"></i>
                            </a>
							<a href tooltip="查看会员所有订单" ui-sref="app.system.all({passengerId: p.id})">
                                <i class="fa fa-book" has-authority="BOOKING_LIST"></i>
                            </a>
						</div>
					</td>
				</tr>
				<tr ng-show="dataList==''">
					<td colspan="9" style="text-align: center;">暂无会员信息</td>
				</tr>
			</tbody>
		</table>
	</div>
	<page-footer/>
</div>